package top.leyi.RunnableImpl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import top.leyi.entity.user.User;
import top.leyi.mapper.UserMapper;

import java.util.concurrent.Callable;

/**
 * 使用callable这样的话，出了问题可以吧token删去
 */
@Component
public class UserCallableImpl  implements Callable {

    @Autowired
    UserMapper userMapper;

    User user;

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public Object call() throws Exception {

        return null;
    }
}
